﻿@{
    Layout = "~/Themes/CNet/Shared/_HomePage_Master.cshtml";
}
<script type="text/javascript">
    $(function () {
        $("#top_ul li").removeClass("curChn");
        $("#Manufacturer").addClass("curChn");

    })
</script>
   <div class="shop_main">
    <div class="shop_attrs">
     <div class="result_l">
              <div class="categroy metro">  
                <dl id="J_region">
                    <dt>菜系</dt>
                    @foreach (Nop.Web.Models.Catalog.CategoryModel model in ViewBag.listModel_v)
                    {
                    <dd><a href="#">
                      <span class="result_item">@Html.Raw(model.Name + "馆")</span>
                      <span class="recommendnum_right">@Html.Raw(model.ManuFactCount + "家推荐")</span></a>
                        </dd>                                   
                    }
                    </dl>
            </div>   
       <div class="categroy metro">   
           <dl id="J_cuisine">
               <dt>推荐八家</dt>
               @foreach (Nop.Web.Models.Catalog.ManufacturerModel item in ViewBag.listManufactureOne_v)
               {
                   <dd>
                    <a href="@Url.Action("shop", "shop", new { id=item.Id })"><span class="result_item">@item.Name</span>
                    <span class="recommendnum_right">@Html.Raw(item.RecommendCount + "人推荐")</span>  
                   </a>
                   </dd>
               }
           </dl>
        </div>
      </div>
      
      
      <div class="result_r">
        	
            <!-- 内容start -->
        <div class="ispinpin">
                        @{
                            List<Nop.Web.Models.Catalog.ManufacturerModel> list = ViewBag.listManufactureTwo_v;
                           }
                        <p>@Html.Raw("美食街为您推荐以下" + list.Count + "家餐厅")</p>
                        </div>     
                            @foreach (Nop.Web.Models.Catalog.ManufacturerModel item in list)
                            {     
                        <div class="result_title">@item.Name
                        <small><a href="#">@item.CategoryName</a></small>
            </div>
        <div class="result_info_container metro">
                    <div class="result_info_560">
                        <table style="margin-left: 12px; margin-top: 12px;">
                        <tbody><tr><td class="rel_address" >@item.Address</td></tr>                            
			    <tr><td class="rel_tel">@item.Phone</td></tr>		    
				</tbody></table>                         
               </div>
               <div class="clear"></div>
               <div info="dishes" restaurant_id="892614" style="display: inline; float: left; width:940px; margin-left: 8px;">
               @foreach (Nop.Web.Models.Catalog.ProductOverviewModel prod in item.Products)
               {
               <div class="search_dish_item">
               <div class="search_dish_pic">
               <a href="@Url.RouteUrl("ProductBuy", new { productId = prod.Id })"><img src="@prod.DefaultPictureModel.ImageUrl"></a>
               </div>
               <div class="search_info_dishname" style="color:Black"><a href="@Url.RouteUrl("ProductBuy", new { productId = prod.Id })">@prod.Name</a></div>
               <div class="search_info_dishprice">￥@prod.ProductPrice.Price</div>
               </div>
               }
          

    </div>
   </div>
}